import logging
def set_log():
    logging.basicConfig(level=logging.DEBUG,filename="log.txt",filemode="w",format="%(message)s->%(asctime)s")